<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>

<%@ page import="board1.ChonDAO"%>
<%@ page import="board1.ChonTO"%>
<%@ page import="java.util.ArrayList"%>

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>게시판 글 쓰기</title>
</head>
<body>
	<form action="sa_board_write_ok.jsp" method="post" enctype="multipart/form-data">
마을  : <select name="chon_id">
<%
	request.setCharacterEncoding("UTF-8");

	ChonDAO dao = new ChonDAO();

	ArrayList<ChonTO> data = dao.listChon();

	for (int i = 0; i < data.size(); i++) {
		ChonTO to = (ChonTO) data.get(i);
		String chon_id = to.getChon_id();
		String chon_nm = to.getChon_nm();
%>
 <option value="<%=chon_id %>"><%=chon_nm %></option>
<% } %>
 </select> 	<br>
 
	보드구분: 	<select name="board_id">
   <option value="news">소식지</option>
   <option value="jang">장터</option>
   <option value="cal">일정</option>
 </select> 		
		
	<br> 
		전화번호: <input type="text" name="phone_number" /><br> 
		제목: <input type="text" name="title" /><br>
		내용: <input type="text" name="content" /><br> 
		
		파일1: <input type="file" name="file1" /><br> 
		파일2: <input type="file" name="file2" /><br> 
		파일3: <input type="file" name="file3" /><br> 
		<input type="submit" value="전송" />		

	</form>
</body>
</html>
